// pages/recruit/personal/myjob/myjobdetails/myjobdetails.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: {}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {//若是从新获取数据这里需要修改。
    const that = this;
    let jobid = options;//获取当前job的
    let res = {
      state: 4,
      id: "124545",
      title: "上班结束啦，就等着发钱啦",
      area: "建邺",
      worktime: "2019-10-21",
      pay: "110/天",
      comtel: 17755015130
    }
    that.setData({
      list: res
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },
  todetail:function(){
    let jobid = this.data.list.id;
    wx.navigateTo({
      url: '/pages/recruit/details/details?jobid=' + jobid,
    })
  }
})